package kr.co.dayve.site.management.service;

import kr.co.dayve.site.domain.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Yusung
 * Date: 12. 2. 1
 * Time: 오후 3:58
 * To change this template use File | Settings | File Templates.
 */
public interface CommunityBoardService {

    // Community Board Service
    public abstract List getBoardListBySearchword(CommunityBoard board);
    public abstract List getBoardListByNo(CommunityBoard board);
    public abstract String getTotalCountBySearchword(CommunityBoard board);
    public abstract String getTotalCountByNo(CommunityBoard board);
    public abstract String writeBoard(CommunityBoard board);
    public abstract String updateBoard(CommunityBoard board);
    public abstract String deleteBoard(CommunityBoard board);
    public abstract CommunityBoard getBoardByNo(String community_board_no);

    public abstract String updateReplyCount(CommunityBoard board);
    public abstract String updateHitCount(CommunityBoard board);
    public abstract String updateVoteCount(CommunityBoard board);
    public abstract String updateNegativeCount(CommunityBoard board);
    public abstract String updateReportCount(CommunityBoard board);

    public abstract DayveFile uploadFile(MultipartFile file, String realPath);

    public abstract String checkDuplicateVote(Vote vote);
    public abstract String insertVoterToList(Vote vote);

    public abstract String communityBoardReport(Report report);

    public abstract String checkDuplicateReport(Report report);

    public abstract String updateBoardNotImage(CommunityBoard board);
}
